<%@page import="bean.B01scoreDTO"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link rel="stylesheet" href ='/Web/02CSS/B01score.css'>
<script src = '/Web/03JavaScript/B01score.js'></script>
</head>
<body>	
	<% request.setCharacterEncoding("utf-8"); %>
<jsp:useBean id="score" class="bean.B01scoreVO" scope="page"/>
<jsp:setProperty property="*" name="score"/>
	<h1> 성적입력 결과  </h1>
	<hr>
	<br>

<% B01scoreDTO dto = new B01scoreDTO();
	dto.setVo(score);
	if(dto.insert()){
		out.print("<h4>성적이 정상적으로 등록되었습니다.</h4>");
		out.print("<h4>처리내용은 아래와 같습니다.</h4>");
		out.print("I  D : " + score.getMid() + "<br/>");
		out.print("학  년 : " + score.getGrade()+ "<br/>");
		out.print("성  적 : " + score.getPoint()+ "<br/>");
		out.print("과  목 : " + score.getScode()+ "<br/>");
		out.print("시험일 : " + score.getExamdate()+ "<br/>");
		out.print("시험명 : " + score.getExam()+ "<br/>");
		out.print("석  차 : " + score.getRank()+ "<br/>");
	}else{
		out.print("<h4>입력 시 오류가 발생했습니다. 다시 시도하여 주십시오.</h4>");
	}
%>	
<hr>
<input type="button" value="성적목록" id="btnList"/>
<script>inputInit();</script>
		
<form action="" name="hiddenFrm" method="post">
	<input type="hidden" name="nowPage" value="<%=score.getNowPage() %>">
	<input type="hidden" name="find" value="<%=score.getFind() %>">
</form>
		
</body>

</html>